package com.dodoke.controller;

import com.dodoke.service.CakeCatelogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

@Controller
@RequestMapping("/catalog")
public class CakeCatalogController {

    @Autowired
    private CakeCatelogService cakeCatelogService;
        public String list(Map<String,Object> map){
            map.put("list",cakeCatelogService.getAll());
            return "catalog_list";
        }


}
